package com.study.datetype_study;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author liuguibin
 * @date 2020-12-22 21:17
 */
public class tEST {
    public static void main(String[] args) {
        Date date = new Date();
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd kk:mm:ss");
        String format = dateFormat.format(date);
        long time = date.getTime();
        Date date1 = new Date(time);
        String format1 = dateFormat.format(date1);


        System.out.printf(format1);
    }
}
